var config = require('../../config');


var router = function (app) {

    app.get('/configInfo', function (req, res) {
        res.send({
            jsdebug: config.wx.jsdebug,
            apis: config.apis,
            apiBase: config.apiBase,
            accessToken: req.token.access_token,
            client: req.token.client
        });
    });


};

module.exports = router;